home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Clean 1.2.4
/
IO Examples
/
Simple DataBase
/
listextensions.dcl
< prev
next >
Wrap
Text File
|
1996-12-12
|
396b
|
11 lines
definition module listextensions
import StdOverloaded
insertAt :: !Int .a u:[.a] -> v:[.a] , [u <= v]
updateAt :: !Int .a [.a] -> [.a]
insertindex :: !(a -> a -> Bool) !a !u:[ a] -> (!Int,!v:[a]) , [u <= v]
removeindex :: !a !u:[ a] -> (!Int,!v:[a]) | ==, toString a , [u <= v]
moveinlist :: !Int !Int ! .[ a] -> [a]
splitby :: a ! .[ a] -> [.[a]] | == a